home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
program
/
swagg_m.zip
/
MEMORY.SWG
/
0044_Stack Use 2.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-01-27
|
462b
|
16 lines
{
> Does anyone know if there is any way to check how much of the stack your
> program is using at any given moment? I have Turbo Debugger if that makes
> a difference.
}
Function Stackpos : word; assembler;
asm
mov ax,sp
end;
{
This should give You a indication on how the stack is used - otherwise look
at SP in the registers - It should start of at the size you stated for the
program and shrink down to zero as your program crashes :-)
}